package pub.rookie.filing;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PatternMatcher
{
	public PatternMatcher(String pattern)
	{
		this.pattern = Pattern.compile(pattern);
	}
	
	public boolean match(String input)
	{
		Matcher matcher = pattern.matcher(input);
		return matcher.find();
	}
	
	private Pattern pattern;
}
